<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">积分列表</a></li>
			<li><a href="{:url('pay/setintegral')}">添加积分</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('blog/pay/integral')}">
			商铺查询：
			<input type="text" class="form-control" name="storeid" style="width: 200px;"
				   value="{:input('request.storeid')}" placeholder="填写店铺id">
			<input type="submit" class="btn btn-primary" value="查询"/>
			<a class="btn btn-danger" href="{:url('pay/integral')}">清空</a>
		</form>
		<form action="../../../../index.php" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<th align="left">类别</th>
						<th align="left">充值比例</th>
						<th align="left">积分赠送比例</th>
						<th align="left">兑换比例</th>
						<th align="left">最大充值金额</th>
						<th align="left">最小充值金额</th>
						<th align="left">状态</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
                 <foreach name="data" item="data">
					 <tr>
						 <th width="40">{$data.id}</th>
						 <th align="left">{$data.type|get_pei_type}</th>
						 <th align="left">{$data.top_intintegral}</th>
						 <th align="left">{$data.deductions}</th>
						 <th align="left">{$data.deduction}</th>
						 <th align="left">{$data.max}</th>
						 <th align="left">{$data.min}</th>
						 <if condition="$data.state eq 1">
						 	<th align="left">启用</th>
						 <else/>
						 	<th align="left">关闭</th>
						 </if>
							 <th width="160"><a href="{:url('pay/up',array('id'=>$data.id,'state'=>$data.state))}">修改</a>
							 <a href="{:url('pay/del',array('id'=>$data.id,'table'=>'config'))}">删除</a></th>
					 </tr>
				 </foreach>
				</tbody>
			</table>
			<ul class="pagination">{$page|default=''}</ul>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
<script>
</script>
</html>